import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter);
import router from './router.js'
import App from './App.vue'

Vue.config.productionTip = false
import axios from 'axios'; //导入axios
//axios.defaults.baseURL = 'https://961c03ba-668d-463d-8d57-baa290087305.bspapp.com/http/';
//axios.defaults.baseURL = 'http://localhost:8888';  //配置根域名
axios.defaults.baseURL = "http://"+window.location.hostname+":8888"
//axios.defaults.baseURL = 'http://192.168.21.194:8080/mock/';  //配置根域名
axios.defaults.withCredentials = true;
Vue.prototype.$ajax = axios;  //把axios挂载到Vue的原型上

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import store from './store/index.js'
new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
